package com.example.musicserver.service;

import com.example.musicserver.mapper.UserMapper;
import com.example.musicserver.model.User;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2025-01-15
 * Time: 12:18
 */
@Data
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;



    public User login(User loginUser) {
        User userInfo = userMapper.login(loginUser);
        return userInfo;
    }

    public User selectByName(User loginUser) {
        return userMapper.selectByName(loginUser.getUserName());
    }
}
